package com.ghyf.mplay.view;


import android.content.Context;
import android.widget.VideoView;

/**
 * 播放视频的控件
 * @author 陈小红
 *
 */
public class MVideo extends VideoView {
	private int module_type; // 模块类型
	
	private int zOrder; // 模块的ZOrder
	
	private String file_version;	//文件版本
	
	private String module_name;	//控件名
	
	private int module_uid;//控件标识
	
	private int module_gid;//控件组标识
	public MVideo(Context context) {
		super(context);
		
	}


	

	/* (non-Javadoc)视频尺寸和view大小一致
	 * @see android.widget.VideoView#onMeasure(int, int)
	 */
	@Override
	protected void onMeasure(int widthMeasureSpec, int heightMeasureSpec) {
		
		 	int width = getDefaultSize(0, widthMeasureSpec); 
	        int height = getDefaultSize(0, heightMeasureSpec); 
	        
	        setMeasuredDimension(width, height); 
	}





	public int getModule_type() {
		return module_type;
	}

//	public void setVisibility(int visibility){
//		this.setVisibility(visibility);
//	}
	
	public void setModule_type(int module_type) {
		this.module_type = module_type;
	}

	public int getzOrder() {
		return zOrder;
	}

	public void setzOrder(int zOrder) {
		this.zOrder = zOrder;
	}

	public String getFile_version() {
		return file_version;
	}

	public void setFile_version(String file_version) {
		this.file_version = file_version;
	}

	public String getModule_name() {
		return module_name;
	}

	public void setModule_name(String module_name) {
		this.module_name = module_name;
		
	}

	public int getModule_uid() {
		return module_uid;
	}

	
	public void setModule_uid(int module_uid) {
		this.module_uid = module_uid;
	}

	public int getModule_gid() {
		return module_gid;
	}

	public void setModule_gid(int module_gid) {
		this.module_gid = module_gid;
	}
	
	
}